package com.glasses.abc.view;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

/**
 *
 * @author Jean-Luc Burot
 * @since 2014-10-24
 */
@ManagedBean
@SessionScoped
public class MembersService {
    private boolean pageReportCreateEnabled;
    private boolean pageReportListEnabled;
    
    public boolean getPageReportCreateEnabled() {
        System.out.println("Get ReportCreate visibility of " + pageReportCreateEnabled);
        return pageReportCreateEnabled;
    }
    
    public void setPageReportCreateEnabled(boolean pageReportCreateEnabled) {
        System.out.println("Set ReportCreate visibility to " + pageReportCreateEnabled);
        this.pageReportCreateEnabled = pageReportCreateEnabled;
        this.pageReportListEnabled = false;
    }
    
    public boolean getPageReportListEnabled() {
        System.out.println("Get ReportList visibility of " + pageReportListEnabled);
        return pageReportListEnabled;
    }
    
    public void setPageReportListEnabled(boolean pageReportListEnabled) {
        System.out.println("Set ReportList visibility to " + pageReportListEnabled);
        this.pageReportListEnabled = pageReportListEnabled;
        this.pageReportCreateEnabled = false;
    }
}
